package org.apache.harmony.javax.security.auth.callback;

import java.io.Serializable;

public class TextInputCallback
  implements Serializable, Callback
{
  private static final long serialVersionUID = -8064222478852811804L;
  private String defaultText;
  private String prompt;
  private String inputText;

  private void setPrompt(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0))
      throw new IllegalArgumentException("auth.14");
    this.prompt = paramString;
  }

  private void setDefaultText(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0))
      throw new IllegalArgumentException("auth.15");
    this.defaultText = paramString;
  }

  public TextInputCallback(String paramString)
  {
    setPrompt(paramString);
  }

  public TextInputCallback(String paramString1, String paramString2)
  {
    setPrompt(paramString1);
    setDefaultText(paramString2);
  }

  public String getDefaultText()
  {
    return this.defaultText;
  }

  public String getPrompt()
  {
    return this.prompt;
  }

  public String getText()
  {
    return this.inputText;
  }

  public void setText(String paramString)
  {
    this.inputText = paramString;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.apache.harmony.javax.security.auth.callback.TextInputCallback
 * JD-Core Version:    0.6.1
 */